Skip to content

Conversation

@Tarquinen
Copy link
Collaborator

Summary

  • Automatically prunes tool inputs (arguments) for failed tool calls after 5+ newer tools have been executed
  • Cleans up bad edit attempts, file-not-found errors, etc. while keeping recent errors visible for the model to learn from

Changes

  • Add error-pruning strategy that detects status: 'error' tools
  • Add replaceToolInput() to all format handlers (OpenAI Chat, Responses, Bedrock, Gemini)
  • Track GC tokens via gcCountedIds to prevent re-counting across requests
  • Rename toolsDedupedtoolsGCd for clarity (covers both dedup + error pruning)

Automatically prunes tool inputs (arguments) for failed tool calls
after 5+ newer tools have been executed. This cleans up bad edit
attempts, file-not-found errors, etc. while keeping recent errors
visible for the model to learn from.

- Add error-pruning strategy detecting status: 'error' tools
- Add replaceToolInput() to all format handlers
- Track GC tokens via gcCountedIds to prevent re-counting
- Rename toolsDeduped -> toolsGCd for clarity
@Tarquinen
Copy link
Collaborator Author

this is all broken

@jorgenwh jorgenwh closed this Dec 13, 2025
@jorgenwh jorgenwh deleted the feat/error-input-pruning branch December 13, 2025 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants